<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFhQuestionTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('fh_question', function (Blueprint $table) {
            $table->increments('id');
            $table->string('title')->default('')->comment('问题标题');
            $table->string('q_desc')->nullable()->comment('问题简介');
            $table->text('content')->nullable()->comment('问题详情');
            $table->tinyInteger('show')->default('1')->nullable()->comment('是否显示');
            $table->string('img')->default('')->comment('图片');
            $table->integer('sort')->default('1')->nullable()->comment('排序');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('fh_question');
    }
}
